﻿using CPPEI.Coolzon.Event.NCL;
using CPPEI.Coolzon.Event.UI;
using CPPEI.Coolzon.UI;
using CPPEI.Coolzon.UI.Views;
using CPPEI.Coolzon.UI.Views.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace CPPEI.Coolzon.Theme.Default.Views
{
    /// <summary>
    /// Interaction logic for SettingView.xaml
    /// </summary>
    public partial class SettingView : View
    {
        public SettingView()
        {
            InitializeComponent();

            this.DataContext = UI.UIContext.Current;
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            UIEventBus.Publish(new UIChangeFullScreenStateEvent());
        }

        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            UIEventBus.Publish(new UIChangeFullScreenStateEvent());
        }

        private void _ctlBtnCancel_Click_1(object sender, RoutedEventArgs e)
        {
            this.Cancel();
        }

        /// <summary>
        /// 切换方案按钮点击
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void _ctlBtnSwitchSolution_Click(object sender, RoutedEventArgs e)
        {
            Common.EventBus.Instance.Publish(new CPPEI.Coolzon.Event.UI.UIShowSwitchSolutionViewEvent());
            this.Cancel();
        }
    }
}
